import { ref, computed } from "vue";
import { defineStore } from "pinia";

export const useUserStore = defineStore(
  "user",
  () => {
    const user = ref({});
    const changeUser = (val) => {
      user.value = val;
    };
    return { user, changeUser };
  },
  {
    persist: true,
  }
);

